/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.bar.carta.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link com.bar.carta.service.http.TipoIdiomaServiceSoap}.
 *
 * @author    pgonzalm
 * @see       com.bar.carta.service.http.TipoIdiomaServiceSoap
 * @generated
 */
public class TipoIdiomaSoap implements Serializable {
	public static TipoIdiomaSoap toSoapModel(TipoIdioma model) {
		TipoIdiomaSoap soapModel = new TipoIdiomaSoap();

		soapModel.setTipoIdiomaId(model.getTipoIdiomaId());
		soapModel.setTipoId(model.getTipoId());
		soapModel.setName(model.getName());
		soapModel.setDescripcion(model.getDescripcion());
		soapModel.setIdioma(model.getIdioma());

		return soapModel;
	}

	public static TipoIdiomaSoap[] toSoapModels(TipoIdioma[] models) {
		TipoIdiomaSoap[] soapModels = new TipoIdiomaSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static TipoIdiomaSoap[][] toSoapModels(TipoIdioma[][] models) {
		TipoIdiomaSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new TipoIdiomaSoap[models.length][models[0].length];
		}
		else {
			soapModels = new TipoIdiomaSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static TipoIdiomaSoap[] toSoapModels(List<TipoIdioma> models) {
		List<TipoIdiomaSoap> soapModels = new ArrayList<TipoIdiomaSoap>(models.size());

		for (TipoIdioma model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new TipoIdiomaSoap[soapModels.size()]);
	}

	public TipoIdiomaSoap() {
	}

	public long getPrimaryKey() {
		return _tipoIdiomaId;
	}

	public void setPrimaryKey(long pk) {
		setTipoIdiomaId(pk);
	}

	public long getTipoIdiomaId() {
		return _tipoIdiomaId;
	}

	public void setTipoIdiomaId(long tipoIdiomaId) {
		_tipoIdiomaId = tipoIdiomaId;
	}

	public long getTipoId() {
		return _tipoId;
	}

	public void setTipoId(long tipoId) {
		_tipoId = tipoId;
	}

	public String getName() {
		return _name;
	}

	public void setName(String name) {
		_name = name;
	}

	public String getDescripcion() {
		return _descripcion;
	}

	public void setDescripcion(String descripcion) {
		_descripcion = descripcion;
	}

	public int getIdioma() {
		return _idioma;
	}

	public void setIdioma(int idioma) {
		_idioma = idioma;
	}

	private long _tipoIdiomaId;
	private long _tipoId;
	private String _name;
	private String _descripcion;
	private int _idioma;
}